package com.zy.springboot.config;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;
@Component
public class MyCommandRunner implements CommandLineRunner {
    private static Logger logger = LoggerFactory.getLogger(MyCommandRunner.class);
    @Override
    public void run(String... args) {
        logger.info("启动浏览器打开项目成功");
        /*try {
            Runtime.getRuntime().exec("cmd   /c   start   http://localhost:8080");
        } catch (Exception ex) {
            ex.printStackTrace();
        }*/
    }
}
